package test.yzx.pproject.act2;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.ViewGroup;

import test.yzx.pproject.testView.TestCanvasView;

public class CanvasActivity extends AppCompatActivity{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        TestCanvasView view = new TestCanvasView(this);
        view.setLayoutParams(new ViewGroup.LayoutParams(-1, 300*3));
        setContentView(view);
    }

}
